package com.unicom.auth.controller.dto;

import java.util.ArrayList;
import java.util.List;

public class TreeNode {
	private String text;
	private String[] tags;
	private List<TreeNode> nodes;
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String[] getTags() {
		return tags;
	}
	public void setTags(String tag) {
		this.tags = new String[]{tag};
	}
	public List<TreeNode> getNodes() {
		return nodes;
	}
	public void setNodes(List<TreeNode> nodes) {
		this.nodes = nodes;
	}
	public void addNode(TreeNode node) {
		if (nodes==null) {
			nodes=new ArrayList<TreeNode>();
		}
		this.nodes.add(node);
	}
	
	
}
